import request from '@/utils/request'

const headers = {
  'Content-Type': 'application/json'
}

// 平台充币
export function chargePage(data) {
  return request({
    url: '/admin/asset/chargePage',
    method: 'POST',
    data: JSON.stringify(data),
    headers
  })
}
// 查询节点金额配置
export function getNodeMoneyConf(data) {
  return request({
    url: '/admin/conf/getNodeMoneyConf',
    method: 'POST',
    data: JSON.stringify(data),
    headers
  })
}
// 修改节点金额配置
export function nodeMoneyConf(data) {
  return request({
    url: '/admin/conf/nodeMoneyConf',
    method: 'POST',
    data: JSON.stringify(data),
    headers
  })
}
// 查询分享收益配置
export function getShareYieldConf(data) {
  return request({
    url: '/admin/conf/getShareYieldConf',
    method: 'POST',
    data: JSON.stringify(data),
    headers
  })
}
// 修改分享收益配置
export function shareYieldConf(data) {
  return request({
    url: '/admin/conf/shareYieldConf',
    method: 'POST',
    data: JSON.stringify(data),
    headers
  })
}
// 查询推荐收益配置
export function getReferrerYieldConf(data) {
  return request({
    url: '/admin/conf/getReferrerYieldConf',
    method: 'POST',
    data: JSON.stringify(data),
    headers
  })
}
// 修改推荐收益配置
export function referrerYieldConf(data) {
  return request({
    url: '/admin/conf/referrerYieldConf',
    method: 'POST',
    data: JSON.stringify(data),
    headers
  })
}
// 查询团队收益配置
export function getTramYieldConf(data) {
  return request({
    url: '/admin/conf/getTramYieldConf',
    method: 'POST',
    data: JSON.stringify(data),
    headers
  })
}
// 修改团队收益配置
export function tramYieldConf(data) {
  return request({
    url: '/admin/conf/tramYieldConf',
    method: 'POST',
    data: JSON.stringify(data),
    headers
  })
}
// 查询团队等级配置
export function getTramLevelConf(data) {
  return request({
    url: '/admin/conf/getTramLevelConf',
    method: 'POST',
    data: JSON.stringify(data),
    headers
  })
}
// 修改团队等级配置
export function tramLevelConf(data) {
  return request({
    url: '/admin/conf/tramLevelConf',
    method: 'POST',
    data: JSON.stringify(data),
    headers
  })
}
// 查询转出手续费配置
export function getRolloffCommissionConf(data) {
  return request({
    url: '/admin/conf/getRolloffCommissionConf',
    method: 'POST',
    data: JSON.stringify(data),
    headers
  })
}
// 修改转出手续费配置
export function rolloffCommissionConf(data) {
  return request({
    url: '/admin/conf/rolloffCommissionConf',
    method: 'POST',
    data: JSON.stringify(data),
    headers
  })
}

// 导出操作员列表
export function rechargeexport(obj) {
  return request({
    url: '/admin/excel/rechargeList',
    method: 'post',
    data: JSON.stringify(obj),
    // responseType: 'blob',
    headers: {
      'Content-Type': 'application/json'
    }
  })
}
